package com.hbpa.pan.server.modules.file.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hbpa.pan.web.serializer.IdEncryptSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: BlcakTiger
 * @date: 2023/10/26 8:43
 * @contact: hsf6661@163.com
 * @description: 用户查询文件列表响应视图实体
 */
@Data
@ApiModel(value = "文件列表响应实体")
public class RPanUserFileVO implements Serializable {

    private static final long serialVersionUID = -334771709438907163L;

    @ApiModelProperty(value = "文件id")
    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long fileId;

    @ApiModelProperty(value = "父文件id")
    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long parentId;

    @ApiModelProperty(value = "文件名称")
    private String filename;

    @ApiModelProperty(value = "文件大小描述")
    private String fileSizeDesc;

    @ApiModelProperty(value = "文件夹标识 0否 1是")
    private Integer folderFlag;

    @ApiModelProperty(value = "文件类型 （1 普通文件 2 压缩文件 3 excel 4 word 5 pdf 6 txt 7 图片 8 音频 9 视频 10 ppt 11 源码文件 12 csv")
    private Integer fileType;

    @ApiModelProperty(value = "文件更新时间")
    private Date updateTime;
}
